package io.polly.common.event;

import io.polly.common.config.DynamicExecutorProperties;
import org.springframework.context.ApplicationEvent;

/**
 * @author ldz
 * @version V1.0
 * @title: CollectEvent
 * @description: TODO(用一句话描述该文件做什么)
 * @date: 2022/3/22 15:01
 */

public class CollectEvent extends ApplicationEvent {

    private final DynamicExecutorProperties dep;

    public CollectEvent(Object source, DynamicExecutorProperties dep) {
        super(source);
        this.dep = dep;
    }

    public DynamicExecutorProperties getDtpProperties() {
        return dep;
    }
}